#!/usr/bin/env sh

# YELLOW="\033[33m"
# GREEN="\033[32m"
# RED="\033[31m"
# RESET="\033[0m"

# echo "${YELLOW}\n⏩ 开始 eslint 规范检查${RESET}\n"
# if npx lint-staged; then
#     echo "${GREEN}\n✅ eslint 检查通过\n${RESET}"
# else
#     echo "${RED}\n❌ eslint 检查失败，请修复错误后再提交\n${RESET}"
#     exit 1
# fi

# echo "${YELLOW}\n⏩ 开始 spell 拼写检查${RESET}\n"
# if npm run spellcheck; then
#     echo "${GREEN}\n✅ spell 拼写检查通过\n${RESET}"
# else
#     echo "${RED}\n❌ spell 拼写检查失败，请修复错误后再提交\n${RESET}"
#     exit 1
# fi

# echo "${YELLOW}\n⏩ 开始 type 检查${RESET}\n"
# if npm typecheck; then
#     echo "${GREEN}\n✅ type 检查通过\n${RESET}"
# else
#     echo "${RED}\n❌ type 检查失败，请修复错误后再提交\n${RESET}"
#     exit 1
# fi

